<!--
 * @Description: 接触网设备基础弹出框
 * @Author: Huang Junjie
 * @Date: 2021-10-20 21:46:20
 * @LastEditTime: 2021-10-20 22:00:22
 * @LastEditors: Huang Junjie
-->
<template>
  <div class="popup-div">
    <!-- 设备台账统计图表 -->
    <div
      id="ColumnChart04"
      class="echart01"
    />
    <!-- 设备台账统计图表 -->
  </div>
</template>

<script>
import { ColumnChart01 } from './common/js/EchartsModel';

// 引入echarts
const echarts = require('echarts');

export default {
  name: 'JcwDeviceBasisPopup',
  data() {
    return {

    };
  },
  mounted() {
    this.getColumnChart01(); // 加载接触网设备基础统计Echarts图表
  },
  methods: {
    // 加载接触网设备基础统计Echarts图表
    getColumnChart01() {
      const xAxisData = ['Animals', 'Fruits', 'Cars'];
      const seriesData = [
        {
          value: 5,
          groupId: 'animals'
        },
        {
          value: 2,
          groupId: 'fruits'
        },
        {
          value: 4,
          groupId: 'cars'
        }
      ];
      const myChart = echarts.init(document.getElementById('ColumnChart04'));
      ColumnChart01(myChart, xAxisData, seriesData); // 线路基础统计 - 柱状图
    }
  }
};
</script>

<style lang="scss" scoped>
.popup-div {
  position: absolute;
  width: 60%;
  height: 700px;
  top: 98px;
  right: 10px;
  padding: 10px;
  background-color: #ffffff;
  border: 1px solid #000000;
  .echart01 {
    height: 400px;
    width: 100%;
    margin: 0 auto;
  }
}
</style>
